package com.jdiv.samples.prince;

import com.jdiv.JProcess;
public class Prince extends JProcess {
	private int velocidad=1;

	public Prince(){

		graph=17;
		x=10;
		y=100;
	}
	public void begin(){}
	public void loop(){
	
		
		if (graph==29) graph=17;
		
		if (key(_RIGHT)){
			x+=velocidad;
		  graph++;
		}else{
			graph=17;
		}
	}
}
